package com.systop.dxjj.modules.orders.mapper;


import com.systop.dxjj.common.pojo.Orders;
import com.systop.dxjj.common.pojo.OrdersVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface OrdersMapper {
    //根据orderid查询
    OrdersVO getOrdersById(Integer orderid);
    //根据teachid查询
    List<OrdersVO> getOrdersByTeachId(Integer teachid);
    //根据studentid查询
    List<OrdersVO> getOrdersByStudentId(Integer studentid);
    List<OrdersVO> getAllOrders();
    int deleteByOrderid(Integer orderid);
    //更改订单状态
    Integer updateOrderStatue(Integer orderid, Integer statue);
     //添加订单
    int addOrders(@Param("orders")Orders orders);
}
